package com.cnswhy.cloud.server.core.dto;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 订单收货人信息
 * </p>
 *
 * @author cnswhy
 * @since 2020-11-07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ShopOrderReceiverPageDTO", description = "订单收货人信息")
public class ShopOrderReceiverPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 所属订单id
     */
    @ApiModelProperty(value = "所属订单id")
    @NotNull(message = "所属订单id不能为空")
    private Long orderId;
    /**
     * 收货人姓名
     */
    @ApiModelProperty(value = "收货人姓名")
    @Length(max = 50, message = "收货人姓名长度不能超过50")
    private String receiver;
    /**
     * 收货地区
     */
    @ApiModelProperty(value = "收货地区")
    @Length(max = 500, message = "收货地区长度不能超过500")
    private String area;
    /**
     * 收货地址
     */
    @ApiModelProperty(value = "收货地址")
    @Length(max = 500, message = "收货地址长度不能超过500")
    private String address;
    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码")
    @Length(max = 20, message = "手机号码长度不能超过20")
    private String mobile;
    /**
     * 邮政编码
     */
    @ApiModelProperty(value = "邮政编码")
    @Length(max = 10, message = "邮政编码长度不能超过10")
    private String zipCode;

}
